// src/renderer/store.js
import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useStore = defineStore('dock', () => {
  const dockPos = ref('bottom');   // bottom | left | right
  const mode = ref('dock');        // dock | efficient
  const mergeMode = ref('never');  // never | always

  // 所有图标
  const icons = ref([
    { id: 1, name: 'Firefox', icon: '/icons/firefox.png', color: 'red', progress: 0, exec: 'firefox' },
    { id: 2, name: 'Files',   icon: '/icons/files.png',  color: 'blue', progress: 0, exec: 'nautilus' }
  ]);

  return { dockPos, mode, mergeMode, icons };
});